class PatientsController < ApplicationController

  hobo_model_controller


    def index
  @patient_find = find_instance
  @patients  = @patient_find.stories.apply_scopes(:search    => [params[:search], :name],
                                  :order_by  => parse_sort_param(:name, :surname, :pesel, :email_address))
    end

  auto_actions :all

  def show
    @this=@temp = Patient.find(params[:id])
    @orders = OrderExamination.find_all_by_patient_id this.id
  end

end
